package com.shawn.springboot.integeration.validation.controller;

import com.shawn.springboot.integeration.validation.model.User;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;

/**
 * @author shawn
 * @description: TODO
 * @date 2023/12/12
 */
@RestController
public class UserController {

    @PostMapping("/addUser")
    public String register(@Valid @RequestBody User user) {
        // 处理用户注册请求
        return "success";
    }
}
